package suiguo;

public class FruitTest {
    public static void main(String[] args) {
        Fruit fruit=new Apple("苹果","云南",7);
        fruit.removePeel(fruit);
        fruit.juicing();
        System.out.println(fruit.toString());


        Fruit fruit1=new Banana("香蕉","海南",6);
        fruit.removePeel(fruit1);
        fruit1.juicing();
        System.out.println(fruit1.toString());

        Fruit fruit2=new Peach("桃子","炎陵",7);
        fruit2.removePeel(fruit2);
        fruit2.juicing();
        System.out.println(fruit2.toString());

    }
}
